package com.heima.model.behavior.dtos;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "不喜欢DTO")
public class UnLikesBehaviorDto implements Serializable {

    private static final long serialVersionUID = 1L;
    @NotBlank(message = "文章ID不能为空")
    @ApiModelProperty(value = "文章ID")
    private long articleId;

    @Min(value = 0, message = "0，1之间，0：不喜欢，1：取消不喜欢")
    @Max(value = 1, message = "0，1之间，0：不喜欢，1：取消不喜欢")
    @ApiModelProperty(value = "0：不喜欢，1：取消不喜欢")
    private short type;
}
